import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Axios from 'axios'
import Mint from 'mint-ui';

import 'mint-ui/lib/style.min.css'

//-------------挂载aplay-----------------
import APlayer from '@moefe/vue-aplayer';

Vue.use(APlayer, {
  defaultCover: '',
  productionTip: true,
});


//-------------挂载vedio player-----------------
import VideoPlayer from 'vue-video-player'
require('vue-video-player/node_modules/video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
Vue.use(VideoPlayer)

//-----------------图片预览-----------------------
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
Vue.use(preview)


//-----------Vue上挂载Mint----------------
Vue.use(Mint);

Vue.config.productionTip = false


//------------加载axios------------
const instance = Axios.create({
  baseURL: 'http://localhost:1337/users/',
  timeout: 5000
})
instance.interceptors.response.use(res => {
  return res.data;
});

Vue.prototype.$axios = instance

//-------------实例化Vue---------------------------


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
